package fr.uniscol.dao.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import fr.uniscol.siecle.model.ModaliteElection;

public class ModaliteElectionRowMapper implements RowMapper<ModaliteElection> {

	@Override
	public ModaliteElection mapRow(ResultSet rs, int rowNum)
	throws SQLException {
		
		ModaliteElection modalite = new ModaliteElection();
		modalite.setCode(rs.getString("CODE"));
		modalite.setLibelle_long(rs.getString("LIBELLE_LONG"));
		
		return modalite;
	}

}
